local typedefs = require "kong.db.schema.typedefs"

return {
  name = "my-jwt",
  fields = {
    { consumer=typedefs.no_consumer },
    { config = {
        type = "record",
        fields = {
          { redis_addr = { type = "string",required = true, }, },
          { redis_port = { type = "string", default = "6379" }, },
          { redis_pwd = { type = "string", required = true, }, },
          { redis_db = { type = "integer", required = true, default = 0}, },
          { redis_key_prefix = { type = "string", required = true, default = "auth_employee_"}, },
          { redis_key_name = { type = "string", required = true, default = "uid"}, },
          { sso = { type = "boolean", required = true, default = false}, },   -- 单点登录判断开关
    }, }, },
  },
}
